package com.dgshanger.sanhxiaofeisc.mvp.contract

import com.xx.baseuilibrary.mvp.BaseMvpView
import com.xx.baseutilslibrary.network.rx.RxHttpObserver

/**
 * EditPayPasswordContract
 * 沉迷学习不能自拔
 * Describe：
 * Created by 雷小星🍀 on 2018/4/28 11:40.
 */

interface EditPayPasswordContract {

    interface Model {
        /**
         * 发送验证
         */
        fun sendCode(phone: String, rxHttpObserver: RxHttpObserver<Any>)

        /**
         * 修改支付密码
         */
        fun modifyPaypwd(new_pwd: String, confirm_pwd: String, verify_code: String, rxHttpObserver: RxHttpObserver<Any>)
    }

    interface View : BaseMvpView {

        val phone: String

        val new_pwd: String

        val confirm_pwd: String

        val verify_code: String
        fun setSendBtnEnable(enable: Boolean)
        fun setSendBtnText(text: String)
    }

    interface Presenter {

        /**
         * 发送验证码
         */
        fun sendCode()

        /**
         * 修改支付密码
         */
        fun modifyPaypwd()
    }
}
